//
//  AddViewController.h
//  evidenceGather
//
//  Created by 王继伟 on 13-8-25.
//  Copyright (c) 2013年 无. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "POVoiceHUD.h"
#import "UITableView+DataSourceBlocks.h"
#import "ComboxDelegate.h"
#import "Radio.h"
#import "PopoverViewSelectDelegate.h"
#import "YIPopupTextView.h"
#import "MBProgressHUD.h" 
#import "LoadingView.h"

@class TableViewWithBlock;
@class UserVO;
@class MDProject;
@class MDProbCls;
@class MDGather;
@class MDProvince;
@class FPPopoverController;

@interface AddViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIActionSheetDelegate,POVoiceHUDDelegate,ComboxDelegate,RadioButtonDelegate,PopoverViewSelectDelegate,YIPopupTextViewDelegate,MBProgressHUDDelegate>{
    NSArray *_photos;
    BOOL isOpened;
    UIView *radioContainer;
    MBProgressHUD *HUD;
    LoadingView *loadingView;
}
@property (nonatomic,retain)UIPopoverController *popoverController;
@property (retain, nonatomic) FPPopoverController *popoverCtrl;
@property (retain,nonatomic)  UserVO *userVO; //用户名称 
@property (retain, nonatomic) IBOutlet UIScrollView *photoView;
@property (retain, nonatomic) IBOutlet UIScrollView *radioView; 

@property (nonatomic) int imageCount;
@property (nonatomic) int radioCount;

@property (retain, nonatomic) NSString *selectProvCode;
//选中项目
@property (retain, nonatomic) NSString *selectProjCode;
//选中项目
@property (retain, nonatomic) NSString *selectProjName;
//选中分类
@property (retain, nonatomic) NSString *selectClsCode;

//记录主键
@property (retain, nonatomic) NSString *gathercode;
@property (nonatomic, retain) NSArray *photos;
@property (nonatomic, retain) POVoiceHUD *voiceHud;

//记录主键
@property (retain, nonatomic) NSString *radioFilePath;
@property (retain, nonatomic) AVAudioPlayer *avPlay;

@property (retain, nonatomic) IBOutlet UITextField *provinceTextArea;


@property (retain, nonatomic) IBOutlet UIButton *openButton;
@property (retain, nonatomic) IBOutlet UITextField *projTextArea;
@property (retain, nonatomic) IBOutlet TableViewWithBlock *tb;

@property (retain, nonatomic) MDProject *mdProject;
@property (retain, nonatomic) MDProbCls *mdProbCls; 
@property (retain, nonatomic) MDGather  *mdGather;
@property (retain, nonatomic) MDProvince  *mdProvince;
//项目
@property (retain, nonatomic) NSMutableDictionary *projKeyKeyValue;

//问题分类
@property (retain, nonatomic) NSMutableDictionary *probClsKeyValue;
@property (retain, nonatomic) NSMutableArray *probClsVOs;
@property (retain, nonatomic) IBOutlet UIButton *radioBtn;

//项目
@property (retain, nonatomic) NSMutableDictionary *clsWSMemo;

@property (retain, nonatomic) IBOutlet UIButton *projBtn;
 
- (IBAction)projBtnClick:(id)sender;

//拍照action
- (IBAction)takePhotoBtn:(id)sender;

//录音action
- (IBAction)radioBtn:(id)sender;

//提交按钮
- (IBAction)cmtBtn:(id)sender;

- (IBAction)closeBtn:(id)sender;

@end
